<?php
/**
 * Created by PhpStorm.
 * User: 68008000
 * Date: 2017/11/13
 * Time: 20:41
 */
namespace app\admin\validate;

use think\Validate;

class EditPsw extends Validate
{
    protected $rule = [
        'password'  => 'require',
        'new_password' => 'require',
        //手册搜内置规则
        'confirm_password' => 'require|confirm:new_password'
    ];

    protected $message = [
        'password.require'  => '请输入原始密码',
        'new_password.require'  => '请输入新密码',
        'confirm_password.require'  => '请再次输入',
        'confirm_password.confirm'  => '两次密码不一致',
    ];

}